<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title></title>
	<include file="Public/header" />
</head>
<body>
<script type="text/javascript">
	var logisticsEditUrl="{:U('Logistics/logisticsSave')}";//更新数据
	var getlogisticsUrl="{:U('Logistics/get_logistics')}";
	var logisticsDelUrl="{:U('Logistics/logisticsDel')}";
	var logisticsExamineUrl="{:U('Logistics/examinelogistics')}";
	var logisticsClearUrl="{:U('Logistics/logisticsClear')}";
	var logisticsUndoUrl="{:U('Logistics/logisticsUndo')}";
	var logisticsInfoUrl="{:U('Logistics/logisticsInfo')}";
	var erpId="{:I('id')}";//erp企业对应id
	
	var pushOrderUrl="{:U('Pushsendapi/logisticsOrderSend')}";//推送接口
	<!-- using('../../../default/js/logistics.js'); -->
</script>
<script type="text/javascript" src="__PUBLIC__/default/js/logistics.js"></script>

	<table id="logisticsDatagrid" toolbar="#logistics_tb"></table>
	<!-- 添加 -->
	<div id="logisticsAddDialog" class="easyui-dialog" title="添加" style="width:500px;padding:10px 20px"
        closed="true" buttons="#logisticsAddButtons"  modal="true">
         <form id="logisticsAddForm" method="post" novalidate>
			<div class="fitem">
                <label>物流公司名称</label>
                <input name="logistics_company_name" class="easyui-textbox" data-options="required:true,delay:1000,height:30,validType:['length[2,30]']" />
            </div>
            <div class="fitem">
                <label>物流公司编号</label>
                <input name="logistics_company_no" type="text"  class="easyui-textbox" data-options="required:true,delay:1000,height:30,validType:['length[1,20]']" />
            </div>
			<div class="fitem">
                <label>重量基数(kg)</label>
                <input name="weight" type="text"  class="easyui-textbox" data-options="required:true,delay:1000,height:30,validType:['length[1,20]']" />
            </div>

			<div class="fitem">
                <label>初始价格(人民币/kg)	</label>
                <input name="weight_base_price" type="text"  class="easyui-textbox" data-options="required:true,delay:1000,height:30,validType:['length[1,20]']" />
            </div>
			<div class="fitem">
                <label>超出价格(人民币/kg)	</label>
                <input name="weight_over_price" type="text"  class="easyui-textbox" data-options="required:true,delay:1000,height:30,validType:['length[1,20]']" />
            </div>
			<div class="fitem">
                <label>体积(m3)</label>
                <input name="volume" type="text"  class="easyui-textbox" data-options="required:true,delay:1000,height:30,validType:['length[1,20]']" />
            </div>
			<div class="fitem">
                <label>体积的基数(m3)	</label>
                <input name="volume_base" type="text"  class="easyui-textbox" data-options="required:true,delay:1000,height:30,validType:['length[1,20]']" />
            </div>
         </form>
    </div>
    <div id="logisticsAddButtons">
    	<a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-ok" onclick="logisticsObj.add('{:U('Logistics/logisticsAdd')}')" style="width:90px">添加</a>
        <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-cancel" onclick="javascript:$('#logisticsAddDialog').dialog('close')" style="width:90px">取消</a>
    </div>
    <!-- /添加 -->
	<!-- 编辑 -->
    <div id="logisticsEditDialog" class="easyui-dialog" style="width:400px;padding:10px 20px"
            closed="true" buttons="#logisticsEditButtons"  modal="true">
        <form id="logisticsEditForm" method="post" novalidate>
            <div class="fitem">
                <label>物流公司名称</label>
				<input name="id"  type="hidden" />
                <input name="logistics_company_name" class="easyui-textbox" data-options="required:true,delay:1000,height:30,validType:['length[2,30]']" />
            </div>
            <div class="fitem">
                <label>物流公司编号</label>
                <input name="logistics_company_no" type="text"  class="easyui-textbox" data-options="required:true,delay:1000,height:30,validType:['length[1,20]']" />
            </div>
			<div class="fitem">
                <label>重量基数(kg)</label>
                <input name="weight" type="text"  class="easyui-textbox" data-options="required:true,delay:1000,height:30,validType:['length[1,20]']" />
            </div>

			<div class="fitem">
                <label>初始价格(人民币/kg)	</label>
                <input name="weight_base_price" type="text"  class="easyui-textbox" data-options="required:true,delay:1000,height:30,validType:['length[1,20]']" />
            </div>
			<div class="fitem">
                <label>超出价格(人民币/kg)	</label>
                <input name="weight_over_price" type="text"  class="easyui-textbox" data-options="required:true,delay:1000,height:30,validType:['length[1,20]']" />
            </div>
			<div class="fitem">
                <label>体积(m3)</label>
                <input name="volume" type="text"  class="easyui-textbox" data-options="required:true,delay:1000,height:30,validType:['length[1,20]']" />
            </div>
			<div class="fitem">
                <label>体积的基数(m3)	</label>
                <input name="volume_base" type="text"  class="easyui-textbox" data-options="required:true,delay:1000,height:30,validType:['length[1,20]']" />
            </div>
        </form>
    </div>
    <div id="logisticsEditButtons">
        <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-ok" onclick="logisticsObj.save('{:U('Logistics/logisticsSave')}')" style="width:90px">更新</a>
        <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-cancel" onclick="javascript:
    $('#logisticsEditDialog').dialog('close')" style="width:90px">取消</a>
    </div>
    <!-- /编辑 -->
    <!-- 搜索栏 -->
    <div id="logistics_tb">
        <form id="logisticsSearchForm" method="post" novalidate>
             <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon icon-all" plain="true" onclick="logisticsObj.showAll()">全部</a>     
			 公司编码:<input class="easyui-textbox" name="logistics_company_no" style="width:150px;height:30px;">
			 公司名称:<input class="easyui-textbox" name="logistics_company_name" style="width:150px;height:30px;">
			<a href="#" class="easyui-linkbutton searchBar" iconCls="icon-search" style="height:30px;">搜索</a>
        </form>
		<a href="javascript:void(0)" onclick="logisticsObj.addBar()" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true">添加</a>
        <a href="javascript:void(0)" onclick="logisticsObj.editBar()" class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true">修改</a>
        <a href="javascript:void(0)" onclick="logisticsObj.removeBar()" class="easyui-linkbutton" data-options="iconCls:'icon-remove',plain:true">删除</a>
		<a href="javascript:void(0)" onclick="logisticsObj.reloadBar()" class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true">刷新</a>
		<a href="javascript:void(0)" onclick="logisticsObj.saveBar()" class="easyui-linkbutton" data-options="iconCls:'icon-save',plain:true">保存</a>
        <a href="javascript:void(0)" onclick="logisticsObj.examineBar(1)" class="easyui-linkbutton" data-options="iconCls:'icon-key',plain:true">审核通过</a>
		<a href="javascript:void(0)" onclick="logisticsObj.examineBar(2)" class="easyui-linkbutton" data-options="iconCls:'icon-key_delete',plain:true">审核不通过</a>
		<a href="javascript:void(0)" class="easyui-menubutton" data-options="menu:'#logistics_mm1',iconCls:'icon-recycle'">回收站</a>
		<div id="logistics_mm1" style="width:150px;">
			<div onclick="logisticsObj.recycle()">查看</div>
			<div onclick="logisticsObj.undoBar()" data-options="iconCls:'icon-undo'">恢复</div>
			<div onclick="logisticsObj.clearBar()" data-options="iconCls:'icon-remove'">删除</div>
		</div>
    </div>
    <!-- /搜索栏 -->
</body>